package com.js.mapper.bot;

import com.js.domian.entity.bot.CommandEntity;
import com.js.domian.entity.bot.ResponseEntity;
import com.js.domian.vo.bot.ResponseVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ResponseMapper {
    List<ResponseEntity> getResponseList(ResponseVo vo);

    ResponseEntity getResponse(@Param("id") Integer id);

    List<CommandEntity> getCommandByResponseId(@Param("responseId") Integer responseId);

    void addResponse(ResponseEntity entity);

    void addCommand(CommandEntity entity);

    void updateResponse(ResponseEntity entity);

    void deleteResponse(@Param("id") Integer id);

    void deleteResponseByWebsocketId(@Param("websocketId") Integer websocketId);

    void deleteCommand(@Param("responseId") Integer responseId);
}
